package org.vaadin.golfscoretracker.data;

import java.util.List;

import javax.persistence.Entity;
import javax.persistence.OneToMany;

import org.vaadin.appfoundation.persistence.data.AbstractPojo;

@Entity
public class Player extends AbstractPojo {

    private static final long serialVersionUID = -2544689032970405842L;

    private String name;

    @OneToMany(mappedBy = "player")
    private List<Round> rounds;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Round> getRounds() {
        return rounds;
    }

    public void setRounds(List<Round> rounds) {
        this.rounds = rounds;
    }

}
